package cn.signalpha.modules.shop.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 数据传输对象实体类
 *
 * @author signalpha
 */
@Data
@ApiModel(value = "SellerApplyDTO对象", description = "商户申请")
public class SellerApplyDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;
	@ApiModelProperty(value = "类型：1申请 2修改", hidden = true)
	private Integer type;
    @ApiModelProperty(value = "用户id", hidden = true)
    private Long userId;
//	@NotNull
//	@ApiModelProperty(value = "类型id")
//	private Long typeId;
	@NotNull
	@ApiModelProperty(value = "分类id")
	private Long categoryId;
	@NotBlank
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "状态", hidden = true)
    private Integer status;
	@NotBlank
    @ApiModelProperty(value = "电话")
    private String mobile;
	@NotBlank
    @ApiModelProperty(value = "负责人")
    private String legalPerson;

	@ApiModelProperty(value = "资质图")
	private String licenseImg;

    @ApiModelProperty(value = "审核备注", hidden = true)
    private String remark;

    @ApiModelProperty(value = "创建时间", hidden = true)
    private Date createTime;

	@NotBlank
	@ApiModelProperty(value = "手机验证码")
	private String smsCode;

	@Data
	public static class AuditDTO implements Serializable {
		private static final long serialVersionUID = 1L;
		@NotBlank
		@ApiModelProperty(value = "主键集合，逗号分割")
		private String ids;
		@NotNull
		@ApiModelProperty(value = "状态：-1不通过 1通过")
		private Integer status;
		@NotNull
		@ApiModelProperty(value = "是否自动创建商户")
		private Integer isCreate;
		@ApiModelProperty(value = "审核备注")
		private String remark;
	}

}
